const mongoose = require('../utils/DB/connectDB')()
const Schema = mongoose.Schema;

// 该表代表商品价格分类表，该表为子Doc
const PriceTableSchema = new Schema({
    // 商品分类名称
    priceName:{
        type: String,
        require: true,
        index: true
    },
    // 商品分类图片
    pricePic:{
        type: String,
        require: true
    },
    subclass:{
        type: Array,
        require: true
    }

})


// 生成Model
module.exports = PriceTableSchema;
